package org.jeecg.modules.compilation.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: ci_doc
 * @Author: jeecg-boot
 * @Date:   2024-03-15
 * @Version: V1.0
 */
@Data
@TableName("ci_doc")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ci_doc对象", description="ci_doc")
public class CiDocWebDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**文件编号（ES文档ID）*/
	@Excel(name = "文件编号（ES文档ID）", width = 15)
    @ApiModelProperty(value = "文件编号（ES文档ID）")
    private String documentSn;
	/**文件题名*/
	@Excel(name = "文件题名", width = 15)
    @ApiModelProperty(value = "文件题名")
    private String documentTitle;
	/**发文字号*/
	@Excel(name = "发文字号", width = 15)
    @ApiModelProperty(value = "发文字号")
    private String documentIdentifier;
	/**公文类型编号*/
	@Excel(name = "公文类型编号", width = 15)
    @ApiModelProperty(value = "公文类型编号")
    private String documentTypeSn;
	/**公文类型名称*/
	@Excel(name = "公文类型名称", width = 15)
    @ApiModelProperty(value = "公文类型名称")
    private String documentTypeName;
	/**业务类型编号*/
	@Excel(name = "业务类型编号", width = 15)
    @ApiModelProperty(value = "业务类型编号")
    private String businessCategorySn;
	/**业务类型名称*/
	@Excel(name = "业务类型名称", width = 15)
    @ApiModelProperty(value = "业务类型名称")
    private String businessCategoryName;
	/**图标url*/
	@Excel(name = "图标url", width = 15)
    @ApiModelProperty(value = "图标url")
    private String businessCategoryUrl;
	/**文件正文*/
	@Excel(name = "文件正文", width = 15)
    @ApiModelProperty(value = "文件正文")
    private String content;
	/**原文件路径*/
	@Excel(name = "原文件路径", width = 15)
    @ApiModelProperty(value = "原文件路径")
    private String realRoute;
	/**pdf文件保存路径*/
	@Excel(name = "pdf文件保存路径", width = 15)
    @ApiModelProperty(value = "pdf文件保存路径")
    private String pdfRoute;
	/**经办部门*/
	@Excel(name = "经办部门", width = 15)
    @ApiModelProperty(value = "经办部门")
    private String departmentId;
	/**经办部门名称*/
	@Excel(name = "经办部门名称", width = 15)
    @ApiModelProperty(value = "经办部门名称")
    private String departmentName;
	/**发布日期*/
	@Excel(name = "发布日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发布日期")
    private Date publishedDate;
	/**废止日期*/
	@Excel(name = "废止日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "废止日期")
    private Date abolitionDate;
	/**启用状态*/
	@Excel(name = "启用状态", width = 15)
    @ApiModelProperty(value = "启用状态")
    private String enableFlag;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
	/**ES索引名称*/
	@Excel(name = "ES索引名称", width = 15)
    @ApiModelProperty(value = "ES索引名称")
    private String esIndexName;
	/**是否是附件 0否 1 是*/
	@Excel(name = "是否是附件 0否 1 是", width = 15)
    @ApiModelProperty(value = "是否是附件 0否 1 是")
    private String isAnnex;
	/**依附制度汇编文件的Sn*/
	@Excel(name = "依附制度汇编文件的Sn", width = 15)
    @ApiModelProperty(value = "依附制度汇编文件的Sn")
    private String parentDocSn;
	/**html内容*/
	@Excel(name = "html内容", width = 15)
    @ApiModelProperty(value = "html内容")
    private String htmlText;
	/**html样式*/
	@Excel(name = "html样式", width = 15)
    @ApiModelProperty(value = "html样式")
    private String htmlStyle;
	/**pdf页数*/
	@Excel(name = "pdf页数", width = 15)
    @ApiModelProperty(value = "pdf页数")
    private Integer pdfPages;
}
